package org.coc.iot.common.utils;

import javax.servlet.http.HttpServletRequest;

/**
 * Created by Bean on 2017/5/26.
 */
public class WebKit {

    /**
     *
     * @param request
     * @return
     */
    public static boolean isAjax(HttpServletRequest request) {
        String header = request.getHeader("X-Requested-With");
        return "XMLHttpRequest".equalsIgnoreCase(header);
    }
}
